<!doctype HTML>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
  [
    '<span contenteditable>',
      'ab<br>',
      '^<b>CD</b><br>|',
      'de',
    '</span>'
  ],
  'justifyCenter',
  [
    '<span contenteditable>',
      'ab<br>',
      '<div style="text-align: center;"><b>^CD</b></div>',
      '<div style="text-align: center;">|de</div>',
    '</span>',
  ],
  'justifyCenter in SPAN');
</script>
